package com.snowy.hidden.biz.mapper;

import com.snowy.framework.common.base.mapper.BaseMapper;
import com.snowy.hidden.biz.domain.model.Dict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 字典(Dict)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-29 23:04:18
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    /**
     * 获取字典
     * @param parentDictValue
     * @return
     */
    @Select("select * from DEV_DICT where PARENT_ID in(select id from DEV_DICT where DICT_VALUE=#{parentDictValue})")
    List<Dict> listBizDictByParentDictValue(String parentDictValue);
}
